<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<#include "/admin/include/head.htm">
<script type="text/javascript">
	//中文名称 供应商编号 地址
	var grid;
	$(function(){
		 grid = $("#maingrid").ligerGrid({
            columns: [
				{display: 'ID', name: 'id', width:50, align: 'center', isAllowHide: false},
				{display: '名称', name: 'name', align: 'left', width: 200},
				{display: '网址', name: 'url', align: 'center', width: 100},
				{display: 'LOGO', name: 'logo', align: 'left', width: 350 }
			],  
			pageSize: 12, 
			url: '${base}/admin/b2c/brand/queryData.jhtml',
			width: '100%', 
			height: '100%', 
			enabledSort: true
        });
		
        $("#pageloading").hide();
		LG.loadToolbar(grid);
		//绑定搜索按钮
		LG.search(grid);
		
		parent.selectBrand = function() {
			var selectRows = grid.getSelecteds();
			if(selectRows.length != 1) {
				$.ligerDialog.error("请选择一行记录！");
				return;
			}
			parent.$("#brandId").val(selectRows[0].id);
			parent.$("#brandName").val(selectRows[0].name);
			parent.brandGrid.hide();
		}
	});
</script>
</head>
<body style="padding:10px; overflow:hidden;">
	<div id="functions">
		<div class="clearfix">
			<div style="float:left;">
				<span>
					名称：<input type="text" class="formText" name="search_LIKE_name"/>
				</sapn>
				<input type="button" class="button" value="搜索" id="search"/>
				<a href="#" id="search_btn_reset" face="Wingdings 3">清除本次搜索</a>
			</div>
		</div>
	</div>
	<div id="maingrid" style="margin:0; padding:0"></div>
</body>
</html>